<!--
 * @Author: hifishroom
 * @Date: 2021-08-21 16:32:02
 * @LastEditTime: 2021-09-03 00:01:52
 * @FilePath: \index\src\components\common\swiper\SongSlides4.vue
-->
<template>
  <div class="slides2">
    <swiper class="swiper-container" :options="swiperOption">
      <slot></slot>
      <swiper-slide v-for="(items, index) in imgs" :key="index">
        <div v-for="(i, index) in items" :key="index" class="flex s-push-box">
          <div><img :src="i.picUrl" alt="" :class="imgClass" /></div>
          <div class="s-push-text">
            <p :class="textClass">
              <span class="s-slides4-title">{{ i.name }}</span
              ><span class="s-slides4-name"> - {{ i.user }}</span>
            </p>
            <span class="s-slides4-name">{{ i.intor }}</span>
          </div>
        </div>
      </swiper-slide>
    </swiper>
  </div>
</template>

<script>
export default {
  name: "SongSlides4",
  props: {
    swiperOption: {
      type: Object,
      default() {
        return {};
      }
    },
    imgs: {
      type: Array,
      default() {
        return [];
      }
    },
    imgClass: {
      type: String,
      default() {
        return "";
      }
    },
    textClass: {
      type: String,
      default() {
        return "";
      }
    }
  }
};
</script>

<style lang="scss">
.slides2 {
  width: 100%;
  height: 100%;
}

.page-img {
  width: 35px;
  height: 35px;
}

.my-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
}

.s-push-box {
  width: 100%;
  gap: 10px;
  margin-bottom: 10px;
}
.s-push-text {
  flex: 1;
  text-align: left;
}

.s-slides4-title {
  color: #fff;
  line-height: 1.5;
  font-size: 18px;
}

.s-slides4-name {
  color: #e6dada;
  font-size: 14px;
}
</style>
